package com.yx.system.entity;

import java.util.Date;

/**
 * 消息类
 */
public class TdMessage {
    private Integer id;
    /**
     * 内容
     */
    private String content;
    /**
     * 状态 1：已读 0：未读
     */
    private Integer state;
    /**
     * 创建时间
     */
    private Date time;
    /**
     * 类型
     */
    private Integer type;
    /**
     * 用户ID
     */
    private String uid;

    /**
     * 是否删除
     */
    private boolean isdelete;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public boolean isIsdelete() {
        return isdelete;
    }

    public void setIsdelete(boolean isdelete) {
        this.isdelete = isdelete;
    }

    /**
     * 构造器
     *
     * @param content 内容
     * @param state   状态 是否已读 1已读0未读
     * @param time    时间
     * @param type    类型
     * @param uid     用户UID
     */
    public TdMessage(String content, Integer state, Date time, Integer type, String uid
    ) {
        this.content = content;
        this.state = state;
        this.time = time;
        this.type = type;
        this.uid = uid;
    }

    public TdMessage() {
    }
}